libxl_qmp: Move struct sockaddr_un variable to qmp_open()
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 May 2018 15:17:01 +0000 (16:17 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 21 Aug 2018 10:57:50 +0000 (11:57 +0100)
commite544b5978d00a32b2c3fb9636f9a7ab54228f13a
treee582f336f3816f4ad1f4a5607f7188199b72308c
parent09613d3b5fad9b861ab4a2de0208cb6e8be3476f
libxl_qmp: Move struct sockaddr_un variable to qmp_open()

This variable is only used once, no need to keep it in the handler.

Also fix coding style (remove space after sizeof).
And allow strncpy to use all the space in sun_path.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_qmp.c